package com.syh.jn.scm.infrastructure.repository.model.base.financial;

import com.syh.core.ddd.infrastructure.repository.model.SuperModel;
import lombok.*;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 金融机构
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Entity
@Table(name = "T_BASE_FINANCIAL")
@EqualsAndHashCode(callSuper = true)
public class FinanceModel extends SuperModel {
  /**
   * 地址省 市 区
   */
  @Column(name = "AREA", columnDefinition = "varchar(300) COMMENT '地址省 市 区 使用[广东省,广州市,海珠区]格式保存'")
  private String area;
  /**
   * 单位注册地址
   */
  @Column(name = "ADDRESS", columnDefinition = "varchar(300) COMMENT '单位地址'")
  private String address;
  /**
   * 地区编号
   */
  @Column(name = "AREA_CODE", columnDefinition = "varchar(50) COMMENT '地区编号'")
  private String areaCode;
  /**
   * 单位名称
   */
  @Column(name = "NAME", columnDefinition = "varchar(100) COMMENT '单位名称'")
  private String name;
  /**
   * 状态: -1停用, 1可用
   */
  @Column(name = "STATUS", columnDefinition = "smallint COMMENT '状态: -1停用, 1可用'")
  private Short status;
  /**
   * 对公电子邮件
   */
  @Column(name = "EMAIL", columnDefinition = "varchar(50) COMMENT '对公电子邮件'")
  private String email;
  /**
   * 公司联系电话
   */
  @Column(name = "TEL", columnDefinition = "varchar(50) COMMENT '公司联系电话'")
  private String tel;
  /**
   * 创建日期
   */
  @Column(name = "CREATE_TIME_STAMP", columnDefinition = "bigint COMMENT '创建日期'")
  private Long createTimeStamp;


}
